<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
    <title>订单详情</title>
    <link rel="stylesheet" href="/style/weui.css"/>
    <link rel="stylesheet" href="/style/swiper.min.css"/>
    <link rel="stylesheet" href="/style/example.css"/>
    <link rel="stylesheet" href="/style/sweetalert.css"/>
</head>
<body ontouchstart>

<div class="page">
    <div style="padding-bottom: 50px">
        <!-- order status -->
        <div class="weui-cells first-cells">
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <p style="float: left">预订单号：<?=$bill['preBillNo']?></p>
                    <p style="float: right"><?=$bill['statusName']?></p>
                </div>
            </div>
        </div>
        <!-- order status end -->
        <!-- 收货信息 -->
        <div class="weui-cells top-5-cells">
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <p style="float: left">门店：<?=$bill['ShopName']?></p>
                    <p style="float: right"><?=$bill['address']?></p>
                </div>
            </div>
        </div>
        <!-- 收货信息 end-->
        <!-- 商品信息 -->
        <div class="weui-cells weui-cells_form top-5-cells">

            <!-- list -->
            <?php foreach ($bill['dtl'] as $dtl){  ?>
                <div class="weui-cell" name="goodsBox"  style="clear: both">
                    <div class="weui-cell__bd" style="width: 30%">
                        <?=$dtl['materielName']?>
                    </div>
                    <div class="weui-cell__bd text-center" style="width: 30%">
                        <?=$dtl['orderUnit']?>
                    </div>
                    <div class="weui-cell__bd text-center" style="width: 20%">
                        <?=$dtl['salePrice']?> * <?=$dtl['qty']?>
                    </div>
                </div>


            <?php } ?>
            <!-- list end-->
            <div class="weui-cell">
                <div class="weui-cell__bd text-center">
                    <h4>商品信息 - 共 <?=$bill['totalQty']?> 件</h4>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__bd text-center">
                    <h4>商品金额: <?=$bill['totalMaterielPrice']?>, 运费金额:<?=$bill['deliveryFee1']+$bill['deliveryFee2']?></h4>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__bd text-center">
                    <h4> <?php if ($bill['billStatus'] == 2) {?> 实付金额 <?php } else { ?> 待支付金额 <?php } ?> :<span style="font-size: 14px;color: red;"><?=$bill['payPrice']?></span></h4>
                </div>
            </div>

        </div>
        <?php if(isset($bill['billNos'])) { ?>
        <div class="weui-cells weui-cells_form top-5-cells">
            <?php foreach ($bill['billNos'] as $no){  ?>
            <div class="weui-cell" name="goodsBox"  style="clear: both">
                <div class="weui-cell__bd" style="width: 30%">
                    订单编号:<a href="/order/dtl?billNo=<?=$no?>"> <?=$no?></a>
                </div>
            </div>
            <?php } ?>
        </div>
        <?php } ?>
    </div>
</div>

<script src="/js/zepto.min.js"></script>
<script src="/js/sweetalert.min.js"></script>
<script src="/js/swiper.min.js"></script>
<script type="text/javascript" src="https://res.wx.qq.com/open/libs/weuijs/1.0.0/weui.min.js"></script>

<script>
</script>
</body>
</html>
